<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>发布公告</title>
    <!-- 引入 Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
    <style>
        body {
            background-color: #f8f9fa; /* 设置页面背景色 */
        }
        .container {
            background-color: #fff; /* 设置容器背景色 */
            border-radius: 10px; /* 设置容器圆角 */
            padding: 30px; /* 设置容器内边距 */
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* 添加容器阴影 */
        }
        h1 {
            color: #007bff; /* 设置标题颜色 */
        }
        .btn-primary {
            background-color: #007bff; /* 设置按钮背景色 */
            border-color: #007bff; /* 设置按钮边框颜色 */
        }
        .btn-primary:hover {
            background-color: #0056b3; /* 设置按钮鼠标悬停背景色 */
            border-color: #0056b3; /* 设置按钮鼠标悬停边框颜色 */
        }
    </style>
</head>
<body>
<div class="container mt-5">
    <h1 class="text-center mb-4">发布公告</h1>
    <form>
        <div class="row mb-3">
            <label for="title" class="col-sm-1 col-form-label text-end">标题：</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="title" name="title" required>
            </div>
        </div>
        <div class="row mb-3">
            <label for="content" class="col-sm-1 col-form-label text-end">内容：</label>
            <div class="col-sm-10">
                <textarea class="form-control" id="content" name="content" rows="4" required></textarea>
            </div>
        </div>
        <div class="row mb-3">
            <label for="author" class="col-sm-1 col-form-label text-end">作者：</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="author" name="author" required>
            </div>
        </div>
        <div class="row mb-3">
            <label for="publishDate" class="col-sm-1 col-form-label text-end">发布日期：</label>
            <div class="col-sm-10">
                <input type="date" class="form-control" id="publishDate" name="publishDate" required>
            </div>
        </div>
        <div class="text-center">
            <button type="submit" class="btn btn-primary">发布</button>
        </div>
    </form>
</div>

<!-- 引入 Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
